import 'package:flutter/material.dart';
import 'package:v50art/page/LoginPage.dart';
import 'package:v50art/service/FloatingService.dart';

class SplashPage extends StatefulWidget {
  const SplashPage({super.key});
  @override
  State<SplashPage> createState() => _SplashPageState();
}

class _SplashPageState extends State<SplashPage> {
  @override
  void initState() {
    super.initState();
    Future.delayed(Duration.zero).then((value) {
      FloatingService.create(context);
      Navigator.pushReplacement(
          context, MaterialPageRoute(builder: (c) => const LoginPage()));
    });
  }

  @override
  Widget build(BuildContext context) {
    return Container();
  }
}
